package edu.spec.teacher.dao.impl;

import edu.spec.teacher.dao.iface.IElectDao;
import edu.spec.teacher.model.Elect;
import org.madgecko.basic.dao.BaseDao;
import org.madgecko.basic.model.Pager;
import org.springframework.stereotype.Repository;

/**
 * Author       : MadFrog
 * Date         : 2018/10/6 16:20
 * Description  :
 */
@Repository
public class ElectDao extends BaseDao<Elect> implements IElectDao {

    @Override
    public Pager<Elect> find() {
        String hql = "from Elect order by createDate desc";
        return this.find(hql);
    }

}
